package ee.maoinvest.backend.model.dao;

import java.util.List;

import ee.maoinvest.backend.model.data.User;

public interface UserDAO 
{
	//basic CRUD
	public int insertUser(User user);
	public User getUserByID(int userID);
	public List<User> getAllUsers();
	public int updateUser(User updatedUser);
	public int deleteUser(int userID);
	
	/**
	 * Returns null, when there is no such user
	 * @param username
	 * @param password
	 * @return
	 */
	public User getAuthenticatedUser(String username, String password);
}
